package de.keychain

import de.keychain.SecurityFilters;
import grails.test.mixin.Mock
import spock.lang.Specification

@TestFor(AppController)
@Mock(SecurityFilters)
class SecurityFiltersSpec extends Specification {

	
    void "test if basic auth filter works"() {
		when:
			withFilters(controller:"app", action:"index"){
				controller.index()
			}
		then:
			response.status == response.SC_UNAUTHORIZED
			
    }
}
